<template>
  <div id="app">
    <transition name="slide">
      <router-view />
    </transition>
  </div>
</template>
<script>
export default {
  name: 'App',
  watch: {
    $route() {
      this.addTags()
    }
  },
  methods: {
    addTags() {
      const { name } = this.$route
      if (name) {
        this.$store.dispatch('tagsView/addCachedView', this.$route)
      }
      return false
    }
  }
}
</script>
<style lang="scss">

</style>
